<template>
  <div>{{indexData}}</div>
</template>

<script>
import { postRequest } from '../../utils/api';
export default {
  data(){
    return{
      indexData: ''
    }
  },
  methods: {

  },
  mounted: function () {
    var _this = this;
    postRequest('/client/index', {})
    .then(resp =>{
      if (resp.status == 200) {
        var response = resp.data;
        if (response.status == 'success') {
          this.indexData = response.msg;
        } else {
          _this.$alert('首页获取失败!', '失败!');
        }
      } else {
        _this.$alert('首页获取失败!', '失败!');
      }

    }, resp => {
      _this.$alert('找不到服务器⊙﹏⊙∥!', '失败!');
    });
  }
}
</script>

<style>

</style>